package com.danmu.test;

import com.danmu.client.DyBulletScreenClient2;

import java.util.HashSet;
import java.util.Set;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class DanmuTest03 {
    public static void main(String[] args) {

        String roomId1 = "229346";
        String roomId2 = "241123";
//        String roomId3 = "244548";
//        String roomId4 = "56040";
//        String roomId5 = "453751";

        Set<String> room = new HashSet<String>();
        room.add(roomId1);
        room.add(roomId2);

        DyBulletScreenClient2 dy = new DyBulletScreenClient2(roomId1);

        ExecutorService exec = Executors.newCachedThreadPool();

//        for (String roomId : room) {
//            exec.execute(createTask(""));
//        }

        exec.execute(dy);
//        exec.execute(createTask(roomId2));
//        exec.execute(createTask(roomId3));
//        exec.execute(createTask(roomId4));
//        exec.execute(createTask(roomId5));

        exec.shutdown();
    }
}
